// import moduleB from "./moduleB.js"
// console.log(moduleB())
// import p from "./moduleB.js"
import p, { age, al } from "./moduleB.js"
console.log(p)
console.log(age)
al(age)


/*
// 不利于按需加载，懒加载
import * as mA from "./moduleA.js"
console.log(mA)
console.log(mA.f + mA.l)
console.log(mA.phone)
*/


// import { firstName, lastName, fullName } from "./moduleA.js"
// import { f, l, fullName } from "./moduleA.js"
/*
import {
  f as first,
  l as last,
  fullName
} from "./moduleA.js"
// import { fullName } from "./moduleA.js"
// console.log(firstName)
// console.log(lastName)
console.log(fullName({
  first,
  last
}))*/

/*
* CommonJS  用于服务器
* AMD       浏览器
*
* node.js, CommonJS
*
* ES6 module
*
* export 导出
* import 导入
* */







